{% extends 'base.html' %}
{% block title %}虚拟主机信息{% endblock %}
{% block content %}
<div id="page-wrapper">
	<div class="row">
		<div class="col-lg-12">
			<h3 class="page-header">宿主机({{ server_ip }})虚拟主机信息</h3>
		</div>
	</div>
	<div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <B class="fa fa-th"> 虚拟主机信息表</B><div style="float: right;"><a href="/assetmanage/host_add_arg_keep/?server_ip={{ server_ip }}" target="_blank" class="fa fa-plus-square">新增</a></div>
                </div>
                <div class="panel-body">
                    <div class="dataTable_wrapper">
                        <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                            <thead>
                                <tr>
                                    <th>宿主IP</th>
                                    <th>主机IP</th>
                                    <th>应用</th>
                                    <th>主机名</th>
                                    <th>系统版本</th>
                                    <th>CPU核数</th>
                                    <th>内存大小(M)</th>
                                    <th>备注</th>
                                    <th>管理</th>
                                </tr>
                            </thead>
                            <tbody>
                            {% for i in b %}
                                <tr class="gradeA">
                                    <td>{{ i.host_ip }}</td>
                                    <td>{{ i.local_ip }}</td>
                                    <td>{{ i.app }}</td>
                                    <td>{{ i.host_name }}</td>
                                    <td>{{ i.system_version }}</td>
                                    <td>{{ i.cpu_num }}</td>
                                    <td>{{ i.mem_size }}</td>
                                    <td class="center" style="color: red">{{ i.host_note }}</td>
                                    <td><a href="/assetmanage/host_update_arg_keep/?local_ip={{ i.local_ip }}"><button class="btn btn-warning btn-xs" type="button">更改</button></a> <a href="/assetmanage/host_del/?local_ip={{ i.local_ip }}"><button class="btn btn-danger btn-xs" type="button">删除</button></a></td>
                                </tr>
                            {% endfor %}
                            </tbody>
                        </table>
                    </div>
                            <!-- /.table-responsive -->
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}